﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.BlackApart.Data {

    public class ExceptionData : Exception {

        #region Properties

        public int Code { get; set; }
        public string CodeDescription { get; set; }

        #endregion

        #region Costructors

        public ExceptionData(int code, string codeDescription, Exception e)
            : base(codeDescription, e) {
            this.Code = code;
            this.CodeDescription = codeDescription;
        }

        public ExceptionData(int code, string codeDescription) {
            this.Code = code;
            this.CodeDescription = codeDescription;
        }

        public ExceptionData(int code) : this(code, code.ToString()) { }

        #endregion

    }

}
